const { doesNotMatch } = require('assert');
var gulp = require('gulp');
var htmlmin=require('gulp-htmlmin');

gulp.task('first',function(){
    console.log('第一个gulp任务执行');
    return gulp.src('./src/css/index.css')
        .pipe(gulp.dest('dist/css'));
    
});

gulp.task('htmlmin',function(){
    gulp.src('./src/*.html')
    .pipe(htmlmin({ collapseWhitespace: true }))
    .pipe(gulp.dest('dist'));
});